package com.example.pojo;

import org.springframework.web.multipart.MultipartFile;

public class User {
    private Integer uId;
    private String username;
    private String password;
    private String nickname;
    private String name;
    private String sex;
    private String avatar;
    private String phone;
    private String idNumber;
    private String enterYear;
    private String className;
    private String subject;
    private String email;
    private Integer messageCount;
    private Integer topicCount;
    private Integer commentCount;
    public MultipartFile uploadAvatar;

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", avatar='" + avatar + '\'' +
                ", phone='" + phone + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", enterYear='" + enterYear + '\'' +
                ", className='" + className + '\'' +
                ", subject='" + subject + '\'' +
                ", email='" + email + '\'' +
                ", messageCount=" + messageCount +
                ", topicCount=" + topicCount +
                ", commentCount=" + commentCount +
                ", uploadAvatar=" + uploadAvatar +
                '}';
    }

    public MultipartFile getUploadAvatar() {
        return uploadAvatar;
    }

    public void setUploadAvatar(MultipartFile uploadAvatar) {
        this.uploadAvatar = uploadAvatar;
    }

    public User() {

    }

    public User(String nickname,String avatar,String phone,String email,Integer messageCount,Integer topicCount,
                Integer commentCount) {
        this.nickname = nickname;
        this.avatar = avatar;
        this.phone = phone;
        this.email = email;
        this.messageCount = commentCount;
        this.topicCount = topicCount;
        this.commentCount = commentCount;
    }

    public User(Integer uId, String username, String password, String nickname, String name, String sex,
                String avatar, String phone, String idNumber, String enterYear, String className, String subject, String email, Integer messageCount, Integer topicCount, Integer commentCount) {
        this.uId = uId;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.name = name;
        this.sex = sex;
        this.avatar = avatar;
        this.phone = phone;
        this.idNumber = idNumber;
        this.enterYear = enterYear;
        this.className = className;
        this.subject = subject;
        this.email = email;
        this.messageCount = messageCount;
        this.topicCount = topicCount;
        this.commentCount = commentCount;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getEnterYear() {
        return enterYear;
    }

    public void setEnterYear(String enterYear) {
        this.enterYear = enterYear;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getMessageCount() {
        return messageCount;
    }

    public void setMessageCount(Integer messageCount) {
        this.messageCount = messageCount;
    }

    public Integer getTopicCount() {
        return topicCount;
    }

    public void setTopicCount(Integer topicCount) {
        this.topicCount = topicCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

}
